All Questions
2 questions
3votes
1answer
257views
Iterative version of a permutations algorithm
For learning purposes, I've written an iterative version of a recursive algorithm for generating the set of permutations for a given set of unique integers. Can I make any improvements to increase ...
3votes
1answer
682views
Efficiently Generate Subset of all Permutations or Combinations with and without Repetition (C++)
Suppose I want to write some functions which return the vector containing a vector representing all permutations or combinations with or without repetition (dependent on the function) of a subset of a ...